
<script type="text/javascript">
!(function(){window._{{shop_alpha_name}}_={};window._{{shop_alpha_name}}_.theme={{theme_config|pubic_front_imgcdn_replace|json}};window._{{shop_alpha_name}}_.config={{storeConfig|store_config_filter|pubic_front_imgcdn_replace|json}};window._{{shop_alpha_name}}_.lang={{lang|json}};window.C_SETTINGS={{variable_encrypt|pubic_front_imgcdn_replace|json}};window._GET_C_SETTING_=function(key){if(!key){return undefined}return C_SETTINGS[key]||undefined};window[atob("dGhlbWVDb25maWc=")]=window._{{shop_alpha_name}}_.theme;window[atob("c2hvcF90aGVtZQ==")]=window._{{shop_alpha_name}}_.theme;window[atob("c3RvcmVDb25maWc=")]=window._{{shop_alpha_name}}_.config;window[atob("c2hvcF9jb25maWc=")]=window._{{shop_alpha_name}}_.config;window[atob("bGFuZw==")]=window._{{shop_alpha_name}}_.lang;window[atob("c2hvcF9sYW5n")]=window._{{shop_alpha_name}}_.lang;Object.keys(C_SETTINGS).forEach(function(a){window[`${atob("b2VtY2FydF8=")}${a}`]=C_SETTINGS[a]})})();
</script>

{% unless storeConfig.hot_email_auto_add == '0' %}
  <script>
    document.addEventListener('DOMContentLoaded', function() {
      if(_GET_C_SETTING_('page_ca') == 'customer_login' || _GET_C_SETTING_('page_ca') == 'customer_register') {
        emailAutoFill('.mo-form-item[name="email"]','#email')
      }
      if((_GET_C_SETTING_('page_ca') == 'order_checkout' || _GET_C_SETTING_('page_ca') == 'orderonepage_index') && document.querySelector('.order_email') !== null) {
        emailAutoFill('.order_email .order_text_box','input[name="email"]')
      }
    });
  </script>
{% endunless %}


